package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the DOCUMENTS_APPLY database table.
 * 
 */
@Entity
@Table(name="DOCUMENTS_APPLY")
@NamedQuery(name="DocumentsApply.findAll", query="SELECT d FROM DocumentsApply d")
public class DocumentsApply implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="DOCUMENTS_APPLY_APPLYID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DOCUMENTS_APPLY_APPLYID_GENERATOR")
	@Column(name="APPLY_ID")
	private long applyId;

	@Column(name="APPLICATION_DATE")
	private Timestamp applicationDate;

	@Column(name="APPLY_STATE")
	private BigDecimal applyState;

	@Column(name="DISMISS_REASON")
	private String dismissReason;

	//bi-directional many-to-one association to DocumentMaster
	@ManyToOne
	@JoinColumn(name="DOCU_ID")
	private DocumentMaster documentMaster;

	public DocumentsApply() {
	}

	public long getApplyId() {
		return this.applyId;
	}

	public void setApplyId(long applyId) {
		this.applyId = applyId;
	}

	public Timestamp getApplicationDate() {
		return this.applicationDate;
	}

	public void setApplicationDate(Timestamp applicationDate) {
		this.applicationDate = applicationDate;
	}

	public BigDecimal getApplyState() {
		return this.applyState;
	}

	public void setApplyState(BigDecimal applyState) {
		this.applyState = applyState;
	}

	public String getDismissReason() {
		return this.dismissReason;
	}

	public void setDismissReason(String dismissReason) {
		this.dismissReason = dismissReason;
	}

	public DocumentMaster getDocumentMaster() {
		return this.documentMaster;
	}

	public void setDocumentMaster(DocumentMaster documentMaster) {
		this.documentMaster = documentMaster;
	}

}